import AfterSaleStatusEnum from "@/feature/oms/infra/constants/AfterSaleStatusEnum";

export default class OrderItem {
  constructor(props) {
    Object.assign(this, props)
    this.afterSaleStatus = AfterSaleStatusEnum.getById(this.afterSaleStatus)
  }
  //
  // get canRefund() {
  //   return this.status <= OrderStatusEnum.WAIT_COMMENT && this.status >= OrderStatusEnum.WAIT_SEND
  // }
  //
  // get hasExpressInfo() {
  //   return this.status > OrderStatusEnum.WAIT_SEND && this.status < OrderStatusEnum.CLOSED
  // }
  //
  // get canSend() {
  //   return this.status === OrderStatusEnum.WAIT_SEND
  // }
  //
  // get canOpenInvoice() {
  //   return this.status >= OrderStatusEnum.WAIT_COMMENT && this.status !== OrderStatusEnum.REFUND_SUCCESS
  // }
}
